<br />
<div align="center">
  <table class="border" summary="جدول" border="1" cellspacing="1" width="97%">
   <tr>
       {if $place eq all}
       <form name="newposts" method="GET" action="misc.php">
       <input type="hidden" name="newposts" value="1">
       <td class="tcat" colspan="4">آخر المشاركات منذ:
        <select name="since">
          <option value="3600" {if $since eq 3600}selected{/if}>ساعة</option>
          <option value="86400" {if $since eq 86400}selected{/if}>يوم</option>
          <option value="172800" {if $since eq 172800}selected{/if}>يومان</option>
          <option value="604800" {if $since eq 604800}selected{/if}>أسبوع</option>
          <option value="1209600" {if $since eq 1209600}selected{/if}>أسبوعان</option>
          <option value="2592000" {if $since eq 2592000}selected{/if}>شهر</option>
          <option value="0" {if $since eq 0}selected{/if}>البداية</option>
        </select>
        &nbsp;عدد المواضيع:
        <select name="limit">
          <option value="10" {if $limit eq 10}selected{/if}>10</option>
          <option value="20" {if $limit eq 20}selected{/if}>20</option>
          <option value="30" {if $limit eq 30}selected{/if}>30</option>
          <option value="40" {if $limit eq 40}selected{/if}>40</option>
          <option value="50" {if $limit eq 50}selected{/if}>50</option>
        </select>
        <input class="button" type="submit" value="موافق">
       </form>
       {/if}{if $place eq today}
       <td class="tcat" colspan="4">مواضيع اليوم</td>
       {/if}
   </tr>
   <tr>
      <td class="thead" width="40%">عنوان الموضوع</td>
      <td class="thead" width="25%">الكاتب</td>
      <td class="thead" width="10%">عدد الردود</td>
      <td class="thead" width="25%">آخر مشاركة</td>
    </tr>
    {section name=idx loop=$subject_row}
    <tr>
      <td class="row1"><a href="show.php?main=1&amp;id={$subject_row[idx].id}">{$subject_row[idx].title|escape:"html"}</a></td>
      <td class="row3dark"><a href="misc.php?profile=1&amp;username={$subject_row[idx].writer|escape:"html"}">{$subject_row[idx].writer|escape:"html"}</a></td>
      <td class="row3">{$subject_row[idx].reply_number}</td>
      <td class="row3dark">{if $subject_row[idx].last_replier eq""}لا توجد ردود{else}<a href="misc.php?profile=1&amp;username={$subject_row[idx].last_replier|escape:"html"}">{$subject_row[idx].last_replier|escape:"html"}</a> | {$subject_row[idx].lastreply_date}{/if}</td>
      </tr>
    {/section}
  </table>
</div>
<br />